package com.luyuan.crm.product.model;

import java.util.Set;

import com.luyuan.crm.question.model.Question;
import com.ruijie.foundation.bo.EntityObject;

@SuppressWarnings("rawtypes")
public class ProductType extends EntityObject {

    /**
     * 
     */
    private static final long serialVersionUID = -4181279663546296544L;

    private String typeName;

    private String description;

    private Set<Product> products;

    private Question question;

    public Set<Product> getProducts() {
        return products;
    }

    public void setProducts(Set<Product> products) {
        this.products = products;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if (other == null) {
            return false;
        }
        if (!(other instanceof ProductType)) {
            return false;
        }
        ProductType entity = (ProductType) other;
        if (getId() == null || entity.getId() == null) {
            return false;
        }
        return getId().equals(entity.getId());
    }
}
